home *** CD-ROM | disk | FTP | other *** search
- Instructions for SFIND Copyright 1987 Eric Balkan
-
- If you type in the name of the program, SFIND, without any parameters,
- it'll tell you what you need to use it. Basically, though, here is what
- you do:
-
- 1 - Decide what directories/disks you want to search and enter them
- using the DOS SET command, e.g.:
- C> set DIRS=C:\dir1;c:\dir2;.;d:\
- Each directory name is separated by a semi-colon (;). A period means
- to search the current directory, whatever that happens to be. The word
- DIRS is used only by SFIND; otherwise the syntax is mostly similar to that
- of the DOS PATH command. (The SET command allows an easy way for users to
- tell programs about things that don't change very often.) If you want to
- get rid of directories that have been previously specified, just key in:
- set DIRS=
- With no directories specified, SFIND will only search one directory --
- the one implied or specified with the filename. Examples below.
-
- 2 - Having set the directories to be searched, you can now execute SFIND:
- C> sfind -u "hello" filepattern outputfilename
- The "-u" option means to ignore case (i.e., treat everything as uppercase).
- The characters between the "" is the string to search for.
- The filepattern is the file or path/file template to search.
- The outputfilename is where the found text records will go.
-
- Another option is "-m" which means suppress the messages that will come
- out to the screen.
-
- The following are examples:
-
- sfind "555-1212" april.* out.apr
- sfind -u "tomorrow is another day." g?.??? script.out
- sfind -um "grapefruits, apples" \dir1\file??.* trash
-
- If the specified output file already exists, SFIND will ask if you want
- to re-use it. If no output file name is specified, the output records will
- go to the screen.
-
- One other thing worth noting: multiple spaces are treated as 1 space
- for comparision purposes. That is, "tomorrow is" compares the same as
- "tomorrow is".